﻿using GameFramework;
using GameFramework.Event;
using System;

namespace TowerDefence_Zombie
{
    public class UpgradeTowerStarEventArgs : GameEventArgs
    {
        public static readonly int EventId = typeof(UpgradeTowerStarEventArgs).GetHashCode();

        public int TowerId;
        public int TowerStar;

        public UpgradeTowerStarEventArgs()
        {
            TowerId = 1;
            TowerStar = 0;
        }

        public override int Id
        {
            get
            {
                return EventId;
            }
        }
        public static UpgradeTowerStarEventArgs Create(int towerId, int towerStar)
        {
            UpgradeTowerStarEventArgs upgradeArgs = ReferencePool.Acquire<UpgradeTowerStarEventArgs>();
            upgradeArgs.TowerId = towerId;
            upgradeArgs.TowerStar = towerStar;
            return upgradeArgs;
        }

        public override void Clear()
        {
            TowerId = 1;
            TowerStar = 0;
        }
    }
}
